<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../css/ReportMatter.css" />
	</head>

	<body style="background-color: #fff;">
		<div id="theMatter">
			<header class="mui-bar mui-bar-nav">
				<a style="color: #fff;" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
				<h1 class="mui-title" style="color: #fff;">过往记录</h1>
			</header>

			<div class="theMatter-content">
				<!--<div class="timeTitle title-fiexd"><img src="../../images/survey.png" /> {{topTitle}}</div>-->
				<div v-for="(item,index) in formData">
					<div class="timeTitle" :ref="'id'+index"> <img src="../../images/survey.png" /> <span v-text="item.reptCD"></span></div>
					<ul class="mui-table-view">
						<li class="mui-table-view-cell item-list" v-for="son in item.reportThingList" @click="orderDetails(son.reptID)">
							<div class="title" v-text="son.reptDetails"></div>
							<div class="son-time" v-text="son.reptCD"></div>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<script src="../../js/Width.js"></script>
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/vue.js"></script>
		<script src="../../js/util.js"></script>
		<script src="https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
		<script type="text/javascript">
			mui.init()
            
            mui.plusReady(function() {
				FastClick.attach( document.body ); 
				GetReportThing()
			var activePage = plus.webview.currentWebview()
				activePage.setPullToRefresh({
						support: true,
						style: 'circle'
					}, function() {
						location.reload();
						activePage.endPullToRefresh();
					});
			})
            
			
			
		    function GetReportThing (userID) {
		    	mui.post(httpUrl.testUrl+ '/api/ReportThing/GetReportThing',{
		    		userID:plus.storage.getItem("userID")
		    	},function(res){
		    		if(res.code===1001){
		    			theMatter.formData = res.data
		    		}
		    	})
		    }
 
			var theMatter = new Vue({
				el: '#theMatter',
				data: {
					formData: [],
					listHeight: [],
					timer: null,
					topTitle: '',
					scroll: ''
				},

				methods: {
                   orderDetails: function(reptID) {
						mui.openWindow({
							url: 'index.html',
							id: 'index.html',
							extras: {
								rouID: reptID,
								rouType: 4,
								sate: 007
							},
							waiting: {
								autoShow: false
							}
						});
					},
			    }
			})
		</script>
	</body>

</html>